//
//  ActivityEditViewController.h
//  WindRunner
//
//  Created by leeqb on 9/14/14.
//  Copyright (c) 2014 poweropt. All rights reserved.
//

#import "BaseTableViewController.h"
#import "PickImageView.h"
#import "LESwitcher.h"

@interface ActivityEditViewController : BaseTableViewController<UITextFieldDelegate, UINavigationControllerDelegate, UIImagePickerControllerDelegate, UIPickerViewDelegate, UIPickerViewDataSource, PickImageDelegate, UITableViewDelegate, LESwitcherDelegate>
@property (retain, nonatomic) IBOutlet UIImageView *activityImageView;
@property (retain, nonatomic) IBOutlet UILabel *typeLabel;
@property (retain, nonatomic) IBOutlet UITextField *typeInput;
@property (retain, nonatomic) IBOutlet UILabel *nameLabel;
@property (retain, nonatomic) IBOutlet UITextField *nameInput;
@property (retain, nonatomic) IBOutlet UILabel *timeLabel;
@property (retain, nonatomic) IBOutlet UITextField *timeInput;
@property (retain, nonatomic) IBOutlet UIButton *startTimeButton;
@property (retain, nonatomic) IBOutlet UIView *horLineTime;
@property (retain, nonatomic) IBOutlet UITextField *endTimeInput;
@property (retain, nonatomic) IBOutlet UIButton *endTimeButton;
@property (retain, nonatomic) IBOutlet UILabel *locationLabel;
@property (retain, nonatomic) IBOutlet UITextField *locationInput;
@property (retain, nonatomic) IBOutlet UILabel *limitLabel;
@property (retain, nonatomic) IBOutlet UITextField *limitInput;
@property (retain, nonatomic) IBOutlet UILabel *remindLabel;
@property (retain, nonatomic) IBOutlet UITextField *remindInput;
@property (retain, nonatomic) IBOutlet UILabel *requireLabel;
@property (retain, nonatomic) IBOutlet UITextField *requireInput;
@property (retain, nonatomic) IBOutlet UILabel *signLabel;
@property (retain, nonatomic) IBOutlet UITableView *activityTable;
@property (retain, nonatomic) IBOutlet UIView *popDateSelectView;
@property (retain, nonatomic) IBOutlet UIView *popSelectView;
@property (retain, nonatomic) IBOutlet UIDatePicker *datePicker;
@property (weak, nonatomic) IBOutlet LESwitcher *applySwitcher;
@property (weak, nonatomic) IBOutlet LESwitcher *secretSwitcher;
@property (weak, nonatomic) IBOutlet UILabel *passLabel;
@property (weak, nonatomic) IBOutlet UITextField *passField;
- (IBAction)saveActivity:(UIButton *)sender;
- (IBAction)showTypeSelectView:(id)sender;
- (IBAction)typeSelected:(id)sender;
- (IBAction)dateSelected:(id)sender;
- (IBAction)selectActivityImage:(id)sender;
- (IBAction)selectTime:(UIButton *)sender;

+ (NSArray *)getActivityTypes;

@end
